package poswar.contribute.util;

public class Config {
	private static String xmlPath;
	private static String sharePath;
	private static String linksFile;
	
	static {
		xmlPath = getProperty("xmlPath", "e:/tmp");
		sharePath = getProperty("sharePath", "e:/tmp/share");
		linksFile = getProperty("linksFile", "e:/tmp/links.properties");
	}

	
	public static String getXmlPath() {
		return xmlPath;
	}
	
	public static String getSharePath() {
		return sharePath;
	}
	
	public static String getLinksFilename() {
		return linksFile;
	}	
	
	private static String getProperty(String property, String defaultValue) {
		String theReturn = System.getProperty("xml_path");
		if (theReturn == null) {
			return defaultValue;
		} else {
			return theReturn;
		}
	}
}